/*公共样式引用开始*/
import '@/styles/index.scss';

/*公共样式引用结束*/
import { createApp } from 'vue'
// element
import ElementPlus from 'element-plus';

import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

import App from './App.vue'
/*路由引入*/
import router from '@/router';
// 引入pinia
import pinia from './store';
// 引入语言
import i18n from './lang';

const app = createApp(App);

// element
app.use(ElementPlus);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
// 挂载pinia
app.use(pinia);
// 挂载路由
app.use(router);
// 挂在i18n
app.use(i18n);

app.mount('#app')
